import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

const app = createApp(App);
//引入qs
import qs from 'qs';
//5.引入移动设备样式基数配置
import 'lib-flexible/flexible.js';

//引入fastclick模块
import FastClick from 'fastclick';
//将整个
FastClick.attach(document.body);

//引入axios
import axios from 'axios';
import VueAxios from 'vue-axios';

import Vant from 'vant';
import 'vant/lib/index.css';



import { Lazyload } from 'vant';


import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';


//配置公共请求路径
axios.defaults.baseURL = 'http://127.0.0.1:8093';
app.config.globalProperties.$Imgurl = 'http://127.0.0.1:8093';

//向原型添加qs插件【使用 this.$qs.函数名】
app.config.globalProperties.$qs = qs;

// https://img61.ddimg.cn/upload_img/00610/mina/home-frame-1617847584.png

app.use(store).use(router).use(VueAxios, axios).use(Vant).use(ElementPlus).use(Lazyload, {
    preLoad: 1.3,
    loading:'img/loading.gif',
    attempt: 3
}).mount("#app");



